<template>
    <div>
      <div class="header">
        <van-nav-bar
          title=""
          left-text=""
          right-text=""
          left-arrow
          @click-left="onClickLeft"
          @click-right="onClickRight"
        />
      </div>
    </div>
  </template>
  
  <script setup lang="ts">
  import { useRouter } from "vue-router";
  const router = useRouter();
  
  const onClickLeft = () => {
  //   返回上一级
    router.go(-1);
  };
  const onClickRight = () => {
    console.log("返回");
  };
  </script>
  
  <style scoped lang="scss">
  .header {
    height:46px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }
  </style>